package com.kyrie.lib_sys.application.timeApplys.pojo.entity;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 订单实体类
 */
public class Order {
    // 订单状态常量
    public static final int STATUS_UNPAID = 0;      // 未支付
    public static final int STATUS_PAID = 1;        // 已支付
    public static final int STATUS_SHIPPED = 2;     // 已发货
    public static final int STATUS_COMPLETED = 3;   // 已完成
    public static final int STATUS_CANCELLED = 4;    // 已取消
    public static final int STATUS_REFUNDED = 5;     // 已退款

    private String orderId;          // 订单ID
    private Long userId;             // 用户ID
    private BigDecimal totalAmount;   // 订单总金额
    private BigDecimal actualAmount;  // 实付金额
    private BigDecimal discountAmount; // 优惠金额
    private Integer status;          // 订单状态
    private Date createTime;         // 创建时间
    private Date payTime;            // 支付时间
    private Date completeTime;       // 完成时间
    private String shippingAddress;  // 收货地址
    private String contactPhone;     // 联系电话
    private String contactName;      // 联系人
    private String remark;           // 订单备注


}
